<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.flying.dcss.app.SessionName"%>
<%@page import="com.flying.dcss.userpermissions.bo.impl.DcssUser"%>
<%@page import="com.flying.dcss.userpermissions.bo.impl.DcssUserInfo"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	if (session.getAttribute(SessionName.UserSession) == null) {
		response.sendRedirect(basePath + "account/login.jsp");
		return;
	}
%>

<%
	DcssUser user = (DcssUser) session
			.getAttribute(SessionName.UserSession);

	//Keep.
	if (user == null)
		user = new DcssUser();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

	</head>

	<body>
		<img style="margin: 100px 30px" src="images/welcome.png" />
		<div>
			<table id="welcomeBlock">
				<tr>
					<td>
						<textarea class="textField" rows="5" cols="10">您好！欢迎您登录东星集团Smart Selector门禁安全系统，我们将竭诚为您服务！</textarea>
					</td>
					<td>
						<textarea class="textField" rows="5" cols="10">您好！您的城市为无锡，地点为东星大厦，隶属于东星集团无锡子公司！</textarea>
					</td>
					<%
						if (user.getEmail().equals("rodick@126.com")) {
					%>
					<td>
						<textarea class="textField" rows="5" cols="10">您好！您的权限为超级管理者，可管理东星大厦所有门禁信息及相关用户信息！</textarea>
					</td>
					<%
						} else {
					%>
					<td>
						<textarea class="textField" rows="5" cols="10">您好！您的权限为普通用户。</textarea>
					</td>
					<%
						}
					%>
					<td>
						<textarea class="textField" rows="5" cols="10">您好！若对本系统有任何疑问，请查看用户手册或联系我们！</textarea>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>